package org.qiyu.live.api.controller;

import jakarta.servlet.http.HttpServletRequest;
import org.live.frmework.web.starter.context.QiyuRequestContext;
import org.qiyu.live.common.interfaces.enums.GatewayHeaderEnum;
import org.qiyu.live.common.interfaces.vo.WebResponseVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: WangJiYou
 * @Date: 2025/01/13/15:31
 * @Description:
 */
@RestController
@RequestMapping("/home")
public class HomePageController {

    @PostMapping("/initPage")
    public WebResponseVO initPage(HttpServletRequest request) {
        Long userId = QiyuRequestContext.getUserId();
        System.out.println(userId);
        return WebResponseVO.success();
    }
}
